package com.cj.bus.common.entity;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

@Data
public class PageEntity<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2690130953195184942L;

	public Integer currentPage;
	
	public Long totalRecord;
	
	public Integer totalPage;

	
	public Integer rows;
	
	public List<T> data;
	
	public  PageEntity(Integer currentPage,Integer totalPage, Integer rows, Long totalRecord, List<T> data) {
		this.currentPage = currentPage;
		this.totalRecord = totalRecord;
		this.totalPage = totalPage;
		this.rows = rows;
		this.data = data;
	}
	
}
